﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TeamDoer.Models.EditProfileModel>" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	<%= User.Identity.Name %> - Edit Profile
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

    <h2><%= User.Identity.Name %> - Edit Profile</h2>

	<% using (Html.BeginForm()) { %>
        <%: Html.ValidationSummary(true, "Account editing was unsuccessful. Please correct the errors and try again.") %>

		<fieldset>
                <legend>Account Information</legend>

                <div class="editor-label">
                    <%: Html.LabelFor(m => m.Email) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.Email)%>
                    <%: Html.ValidationMessageFor(m => m.Email)%>
                </div>

				<div class="editor-label">
                    <%: Html.LabelFor(m => m.FirstName) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.FirstName)%>
                    <%: Html.ValidationMessageFor(m => m.FirstName)%>
                </div>

				<div class="editor-label">
                    <%: Html.LabelFor(m => m.LastName) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.LastName) %>
                    <%: Html.ValidationMessageFor(m => m.LastName)%>
                </div>

				<div class="editor-label">
                    <%: Html.LabelFor(m => m.TwitterName) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.TwitterName)%>
                    <%: Html.ValidationMessageFor(m => m.LastName)%>
                </div>
                
                <input type="submit" value="Save" />
                
            </fieldset>

	<% } %>

	<p><%: Html.ActionLink("Change password", "ChangePassword", "Account") %></p>
</asp:Content>